{template 'common/header'}
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('systemlog',array('op' =>'list'))}">系统日志</a></li>
	<li><a href="{php echo $this->createWebUrl('systemlog',array('op' =>'delall'))}" onclick="return confirm('确认删除全部系统日志吗？');return false;">清空系统日志</a></li>
</ul>

{if $op=='list'}
<div class="main panel panel-default">
	<div class="panel-body table-responsive">
		<form action="" method="post">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th style="width:5%;">id</th>

                    <th style="width:10%;">日志名称</th>

					<th style="width:8%;">函数代码</th>

					<th style="width:10%;">记录时间</th>

					<th style="width:50%;">日志详情</th>

					<th style="text-align:right;width:5%;">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $item}
				<tr>
					<td>{$item['id']}</td>

					<td>{$item['api_appKey']}</td>

					<td>{$item['apiname']}</td>

					<td><div class="type-parent">{if $item['create_time']}{php echo date('Y-m-d H:i:s',$item['create_time'])}{/if}</div></td>

					<td>{$item['log']}</td>

					<td style="text-align:right;">
						<a href="{php echo $this->createWebUrl('systemlog',array('op'=>del,'id'=>$item['id']))}"class="btn btn-default btn-sm" onclick="return confirm('此操作不可恢复，确认删除？');return false;" data-toggle="tooltip" data-placement="top" title="删除"><i class="fa fa-times"></i></a>
					</td>
				</tr>
				{/loop}
			</tbody>
		</table>
		</form>
		{$pager}
	</div>
</div>

{/if}
{template 'common/footer'}
